home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / indent / Makefile.orig < prev    next >
Encoding:
Makefile  |  1989-04-06  |  1.5 KB  |  54 lines

  1. #
  2. # Copyright (c) 1987 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that this notice is preserved and that due credit is given
  7. # to the University of California at Berkeley. The name of the University
  8. # may not be used to endorse or promote products derived from this
  9. # software without specific prior written permission. This software
  10. # is provided ``as is'' without express or implied warranty.
  11. #
  12. #    @(#)Makefile    5.7 (Berkeley) 3/10/88
  13. #
  14. CFLAGS=    -O
  15. LIBC=    /lib/libc.a
  16. SRCS=    indent.c io.c lexi.c parse.c pr_comment.c args.c
  17. OBJS=    indent.o io.o lexi.o parse.o pr_comment.o args.o
  18.  
  19. all: indent
  20.  
  21. indent:    ${OBJS} ${LIBC}
  22.     ${CC} -o $@ ${CFLAGS} ${OBJS}
  23.  
  24. clean: FRC
  25.     rm -f ${OBJS} core indent
  26.  
  27. depend: FRC
  28.     mkdep ${CFLAGS} ${SRCS}
  29.  
  30. install: FRC
  31.     install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/ucb/indent
  32.  
  33. lint: FRC
  34.     lint ${CFLAGS} ${SRCS}
  35.  
  36. tags: FRC
  37.     ctags ${SRCS}
  38.  
  39. FRC:
  40.  
  41. # DO NOT DELETE THIS LINE -- mkdep uses it.
  42. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  43.  
  44. indent.o: indent.c indent_globs.h /usr/include/stdio.h indent_codes.h
  45. io.o: io.c indent_globs.h /usr/include/stdio.h
  46. lexi.o: lexi.c indent_globs.h /usr/include/stdio.h indent_codes.h
  47. lexi.o: /usr/include/ctype.h
  48. parse.o: parse.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h
  49. pr_comment.o: pr_comment.c indent_globs.h /usr/include/stdio.h
  50. args.o: args.c indent_globs.h /usr/include/stdio.h /usr/include/sys/types.h
  51. args.o: /usr/include/ctype.h
  52.  
  53. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  54.